<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="java.util.ArrayList"%>
    
<% request.setAttribute("title", "Create users");%>

<%@include file="/WEB-INF/html/header.jsp" %>

<h1>Create new user:</h1>
<br>

<%
	ArrayList<String[]> errors = (ArrayList<String[]>) request.getAttribute("errors");
%>
<br>
<%
	if (errors != null) {
		for (int i = 0; i < errors.size(); i++) {
			if (errors.get(i)[2] != null) {
				out.println("<b>" + errors.get(i)[0] + "</b>&nbsp;");
				out.println(errors.get(i)[2] + "&nbsp;");
				out.println("<br />");
			}	
		}
	} else
		out.println(" ");

	if (request.getAttribute("succes") != null) {
		out.println(request.getAttribute("succes").toString());
	}
%>

<br>

<form method="POST" action="<% out.print(request.getContextPath()); %>/Operator">
<table>
<tr>
	<td> Please enter OprName:</td>
	<td><input type = "text" name="oprNavn"></td>
</tr>
<tr>
	<td> Please enter ini:</td>
	<td><input type = "text" name="ini"></td>
</tr>
<tr>
	<td> Please enter cpr:</td>
	<td><input type = "text" name="cpr"></td><td><p style="color:#C0C0C0">"DDMMYYnnnn"</p></td>
</tr>
<tr>
	<td> Please enter role:</td>
	<td><input type = "text" name="rolle"></td><td><p style="color:#C0C0C0">"1-4"</p></td>
</tr>
<tr>
	<td></td>
	<td><input type="submit" name="newOperatoer" value="Create"></td>
</tr>
</table>
</form>

<%@include file="/WEB-INF/html/footer.jsp" %>